$(function() {
    let id = window.location.search.split('=')[1]
    function render() {
        $.ajax({
            type: 'get',
            url: 'http://localhost:3000/api/getmoneyctrlproduct?productid='+id,
            dataType: 'json',
            success(res) {
                console.log(res);
                $('.mon-box').html(template('tmp',res.result))
            }
        })
    }
    render()
})